package com.weds.frame.auth.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/31 11:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TreeEntity {

    private Integer id;          //部门id
    private String no;           //编号
    private Integer pid;         //父id
    private String name;       //部门名称
    private Integer lv;         //层级
    private Integer group;
    private Integer isLeaf;
    private List<TreeEntity> children;   //用于存储子节点
    private Integer selected;    //前台选择状态
    private Integer disabled;    //前台
    private Integer checked;
    private Integer objType;
    private String nodePathName;

    private Integer objId;
    private String objName;

    public TreeEntity(String no, String name, Integer lv, List<TreeEntity> children, Integer checked) {
        this.no = no;
        this.name = name;
        this.lv = lv;
        this.children = children;
        this.checked = checked;
    }

}
